<?php

namespace App\Console\Commands;

use App\Models\GoldRound;
use Illuminate\Console\Command;
use App\Supports\Withdraw\WithdrawOverChecker;

class StormValueCount extends Command
{
    protected $signature = 'cc:storm-value-count';

    protected $description = "";

    public function handle()
    {
	    $rounds = GoldRound::available()->get();

	    if ($rounds->isEmpty()) {
	    	$this->error("There is no any gold round.");
		    return;
	    }

	    $this->info("Counting......");

	    foreach ($rounds as $round) {
	    	$value = $round->valueCount();
	    	$this->info("{$round->title}货值: {$value}");
	    }

	    $this->info("Counted.");
    }
}
